package com.luobo.home.service;

import com.luobo.home.pojo.QuestionBank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BankMapper {
    @Select("SELECT * FROM question_bank")
    List<QuestionBank> findAllBanks();

    @Select("SELECT id FROM question_bank WHERE name = #{name}")
    Integer findBankIdByName(String name);
}
